import { request } from 'ngfe-request'

// 商户交易排行
export async function qryTop10TradingStats(params: any) {
  return request('/top10TradingStats', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'ReportSVC',
        stdIntfcInd: 'top10TradingStats',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    }
  })
}

// 支付交易统计
export async function qryPaymentTxStats(params: any) {
  return request('/paymentTxStats', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'ReportSVC',
        stdIntfcInd: 'paymentTxStats',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    }
  })
}

// 积分发放统计
export async function qryPointStats(params: any) {
  return request('/pointStats', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'ReportSVC',
        stdIntfcInd: 'pointStats',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    }
  })
}

// 其他交易金额
export async function otherTxStatus(params: any) {
  return request('/otherTxStats', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'ReportSVC',
        stdIntfcInd: 'otherTxStats',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    }
  })
}